luci-app-attendedsysupgrade: fix missing efi path
authorPaul Spooren <[email protected]>
Wed, 9 Mar 2022 10:29:59 +0000 (11:29 +0100)
committerPaul Spooren <[email protected]>
Mon, 14 Mar 2022 11:05:28 +0000 (12:05 +0100)
commit701ea947fc920e63d14d8efb8287097fd63442ca
tree58acc39af2ec2ba3b1cad3983a01bcdec558b6a5
parentce3599093d947eda6cd93665794d6783f6568216
luci-app-attendedsysupgrade: fix missing efi path

If running on a non EFI system, the file `/sys/firmware/efi` is not
available and therefore results in an error of `fs.stat`. Wrap it with
`L.resolveDefault` to avoid the error message and make it work on
non-EFI devices again.

Signed-off-by: Paul Spooren <[email protected]>
(cherry picked from commit 65266c490a40e589bde23acb1bcac401813c43ce)
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js